package com.qfedu.mall.beans.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Product {
    /**
     * 商品主键id
     */
    @Id
    @Column(name = "product_id")
    private Integer productId;

    /**
     * 商品名称 商品名称
     */
    @Column(name = "product_name")
    private String productName;

    /**
     * 商品详情
     */
    @Column(name = "product_context")
    private String productContext;

    /**
     * 商品价格
     */
    @Column(name = "product_price")
    private BigDecimal productPrice;

    /**
     * 商品分类  0热销爆款 1女装 2鞋包 3转化护肤 4时令水果 5肉类禽蛋 6海鲜水产
     */
    @Column(name = "product_cate")
    private Integer productCate;

    /**
     * 是否参与折扣 0不打折 1一元购 2显示抢购 3满60-59 4 9.9特卖 5是否参与拼团
     */
    @Column(name = "discounts")
    private Integer discounts;



    /**
     * 商品描述 热门爆款 人气推荐 限时秒杀
     */
    @Column(name = "describes")
    private String describes;

    /**
     * 总库存
     */
    @Column(name = "total")
    private Integer total;


    /**
     * 已销售数量
     */
    @Column(name = "sales")
    private Integer sales;

    /**
     * 发货地址
     */
    @Column(name = "product_address")
    private String productAddress;

    /**
     * 图片url
     */
    @Column(name = "products_img")
    private String productsImg;

}